package cn.txun.csmall.product.springtest;

import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import java.io.Serializable;

@Data
public class Stu implements Serializable {

    private Integer id;
    private String name;
    private String gender;
    Stu(){
        System.out.println("这是Stu的构造方法");
    }
    public void init(){
        System.out.println("init()方法执行了");
    }
    public void destroy(){
        System.out.println("destroy()方法执行了");
    }
}
